import unittest
from api.tender_api import TenderApi
from api.recharge_api import RechargeApi
from api.reglogin_api import RegLoginApi
from api.openaccount_api import OpenAccountApi
import requests

class BaseApi(object):
    def __init__(self):
        self.session = requests.session()

    def reg_login_mode(self):
        return RegLoginApi(self.session)

    def open_account_mode(self):
        return OpenAccountApi(self.session)
    def recharge_mode(self):
        return RechargeApi(self.session)
    def tender_mode(self):
        return TenderApi(self.session)